package edu.nf.webapp.controller;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.nf.web.annotation.RequestMapping;
import org.nf.web.servlet.Controller;
import org.nf.web.servlet.View;
import org.nf.web.view.JsonView;

/**
 * @author wangl
 * @date 2024/5/14
 */
@RequestMapping("/hello")
public class HelloController implements Controller {

    @Override
    public View execute(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {
        System.out.println("处理请求...");
        return new JsonView("hello");
    }
}